<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>消息</title>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <!--weui.min.css-->
    <link rel="stylesheet" href="/static/index/css/page/base.css"/>
    <link rel="stylesheet" href="/static/index/css/page/font.css"/>
    <link rel="stylesheet" href="/static/index/jquery_weui/css/swiper.min.css"/>
    <link rel="stylesheet" type="text/css" href="/static/index/jquery_weui/lib/weui.min.css">
    <!--jquery-weui.min.css-->
    <link rel="stylesheet" type="text/css" href="/static/index/jquery_weui/css/jquery-weui.min.css">
    <link rel="stylesheet" href="/static/index/css/page/index.css" />
</head>
<body>
<div class="pageControl message">
    <div class="msui_nav msui_navTop">
        <a class="msui_navTop-back" href="javascript:history.back();"><i class="micon-back"></i></a>
        <h1 class="msui_navTop-title">消息</h1>
    </div>
    {foreach name='report' item='v'}
    	{if $v.user_id eq $user_id}
        <div class="message_list1">
            <p class="fs085">您发布的活动被举报，系统正在审核！</p>
            <!--<p class="message_list1_btn quit">
                <a class="bg-26c cl-f fs09" href="javascript:;">我知道了</a>
            </p>-->
        </div>
        {/if}
    {/foreach}
    {foreach name="start_info" item="v"}
    <div class="message_list1">
        <p class="cl-9999 fs075">{$v.create_time}</p>
        <p class="fs085">{$v.name}策划的活动已开始，是否开始活动？</p>
        <p class="message_list1_btn">
        	<a class="bg-bd cl-f fs09" href="/index/index/start_active_agree?user_id={$v.uid}&active_id={$v.active_id}">同意</a>
            <a class="bg-bd cl-f fs09" href="javascript:;">拒绝</a>
            <a class="bg-26c cl-f fs09" href="/index/index/detail?id={$v.active_id}&uid={$v.user_id}">查看</a>
        </p>
    </div>
    {/foreach}
    
    {foreach name="quit_info" item="vo"}
	    {if $user_id eq $vo.uid}
		    <div class="message_list1">
		        <p class="cl-9999 fs075">{$vo.create_time}</p>
		        <p class="fs085"><span>{$vo.name}</span>申请退出您的团</p>
		        <p class="fs085"><span>退出原因：</span>{$vo.reason}</p>
		        <p class="message_list1_btn">
		        	<a class="bg-bd cl-f fs09" href="/index/index/quit_agree?user_id={$vo.user_id}&active_id={$vo.active_id}">同意</a>
		            <a class="bg-bd cl-f fs09" href="/index/index/quit_disagree?user_id={$vo.user_id}&active_id={$vo.active_id}">拒绝</a>
		            <a class="bg-26c cl-f fs09" href="/index/personal/personal_detail?id={$vo.user_id}">查看</a>
		        </p>
		    </div>
	    {/if}
    {/foreach}
    
    {foreach name="data" item="vo"}
    {if $vo.type eq 1}
    <div class="message_list1">
        <p class="cl-9999 fs075">{$vo.create_time}</p>
        <p class="fs085"><span>{$vo.name}</span>申请加入您的团</p>
        <p class="message_list1_btn">
        	<a class="bg-bd cl-f fs09" href="/index/index/agree?id={$vo.id}&aid={$vo.aid}">同意</a>
            <a class="bg-bd cl-f fs09" href="/index/index/disagree?id={$vo.id}&aid={$vo.aid}&type={$vo.type}">拒绝</a>
            <a class="bg-26c cl-f fs09" href="/index/personal/personal_detail?id={$vo.id}">查看</a>
        </p>
    </div>
    {else}
    <div class="message_list1">
        <p class="cl-9999 fs075">{$vo.create_time}</p>
        <p class="fs085"><span>{$vo.name}</span>申请加入您为好友</p>
        <p class="fs085"><span>验证消息：</span>{$vo.content}</p>
        <p class="message_list1_btn">
        	<a class="bg-bd cl-f fs09" href="/index/index/friend_agree?id={$vo.id}&aid={$vo.aid}">同意</a>
            <a class="bg-bd cl-f fs09" href="/index/index/friend_disagree?id={$vo.id}&aid={$vo.aid}">拒绝</a>
            <a class="bg-26c cl-f fs09" href="/index/personal/personal_detail?id={$vo.id}">查看</a>
        </p>
    </div>
    {/if}
    {/foreach}
    
    
    {foreach $res_quit as $k => $v}
	    <div class="message_list1">
	    	{if $v.is_true eq 1}
	        	<p class="fs085">您的参团审核通过，您已退出该团！</p>
	        {else}
	        	<p class="fs085">您的参团审核已被拒绝，您已退出该团！</p>
	        {/if}
	        <p class="message_list1_btn quit">
	            <a id="kown" class="bg-26c cl-f fs09" href="javascript:;">我知道了</a>
	            <input type="hidden" value="{$v.user_id}" />
	            <input type="hidden" value="{$v.active_id}" />
	        </p>
	    </div>
    	
    {/foreach}
</div>
<!-- jquery-2.1.4 -->
<script type="text/javascript" src="/static/index/jquery_weui/lib/jquery-2.1.4.js"></script>
<!-- jquery-weui.min.js -->
<script type="text/javascript" src="/static/index/jquery_weui/js/jquery-weui.min.js"></script>

<script>
	$('#kown').click(function(){
		user_id = $(this).parent().parent().find('.quit>input:nth-of-type(1)').val();
		active_id = $(this).parent().parent().find('.quit>input:nth-of-type(2)').val();
		$.post(
			"/index/index/kown",
			{user_id: user_id,active_id: active_id},
			function(){
				window.location.href="/index/index/index";
			}
		)
	});
</script>
</body>
</html>
l
